projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9d7062
)
applications/luci-splash: Get parent interface from ifname option. This is for the...
author
Manuel Munz
<
[email protected]
>
Wed, 30 Jan 2013 10:13:43 +0000
(10:13 +0000)
committer
Manuel Munz
<
[email protected]
>
Wed, 30 Jan 2013 10:13:43 +0000
(10:13 +0000)
applications/luci-splash/root/etc/init.d/luci_splash
patch
|
blob
|
history
diff --git
a/applications/luci-splash/root/etc/init.d/luci_splash
b/applications/luci-splash/root/etc/init.d/luci_splash
index e4980d968bbbf79d09489d2b89dead14f41b38e0..d4d3870ff56d3a69e304693d426683128606a561 100755
(executable)
--- a/
applications/luci-splash/root/etc/init.d/luci_splash
+++ b/
applications/luci-splash/root/etc/init.d/luci_splash
@@
-36,7
+36,9
@@
iface_add() {
config_get netmask "$net" netmask
[ -n "$netmask" ] || return 0
- config_get parentiface "$net" interface
+ parentiface="$(uci -q get network.${net}.ifname)"
+ parentiface=${parentiface#@}
+
[ -n "$parentiface" ] && {
config_get parentproto "$parentiface" proto
config_get parentipaddr "$parentiface" ipaddr